package com.jutixueyuan.controller;

import com.jutixueyuan.pojo.Item;
import com.jutixueyuan.pojo.LivegoodsResult;
import com.jutixueyuan.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RecommendationController {

    @Autowired
    private ItemService itemService;

    @RequestMapping("/recommendation")
    public LivegoodsResult recommendation(String city){
        LivegoodsResult result = itemService.selectRecommendationByCity(city);
        return result;
    }

}
